


#include <stdio.h>
#include <stdlib.h>
#include <assert.h>

#include "jjann.h"
//#include "activation.h"
#include "training.h"
#include "constants.h"

int main(int argc, char** argv) {

	uint8 status;
	uint32 i, j;
	float32 error;
	float32 input[2], output[1];
	//trainingPattern_t *trainPatterns;
	trainingData_t trainingData;
	netdata_tp net, otherNet;



	srand(SEED);

	if(status != EXIT_SUCCESS){
		fprintf(stderr,"Error reading configuration, aborting program\n");
		exit(status);
	}
	net = initNetwork("configs/diabetesTest.cfg");
	status = loadSamples(&trainingData, "datasets/diabetes1.training");
	error = crossValidation(net,trainingData.samples, trainingData.sampleSize,10);
	fprintf(stderr, "CrossValidation done, error: %f\n",error);
}


